<!--@if($oDocument->getCommentCount())-->
<div class="feedbackList" id="reply">

	<a name="{$oDocument->get('document_srl')}_comment"></a>
	<h3 class="feedbackHeader">
		<!--@if($grant->write_comment && $oDocument->allowComment()) -->
			<a href="#reply" title="{$lang->comment}"><strong>'{$oDocument->getCommentcount()}'</strong> {$lang->comment}</a>
		<!--@end-->
	</h3>
	
	<div class="replyList">

		{@ $_comment_list = $oDocument->getComments() }
		<!--@foreach($_comment_list as $key => $comment)-->
				<div class="item <!--@if($comment->get('depth'))-->reply<!--@end-->" id="comment_{$comment->comment_srl}">
					<div class="indent" <!--@if($comment->get('depth'))--> style="margin-left:{($comment->get('depth'))*15}px" <!--@end-->>
	
					<h4 class="author">
					<!--@if(!$comment->member_srl)-->
						<!--@if($comment->homepage)-->
							<a href="{$comment->homepage}" onclick="window.open(this.href);return false;">{$comment->getNickName()}</a>
						<!--@else-->
							{$comment->getNickName()}
						<!--@end-->
					<!--@else-->
						<a href="#popup_menu_area" class="member_{$comment->member_srl}" onclick="return false">{$comment->getNickName()}</a>
					<!--@end-->
					</h4>

					<dl class="time">
						<dd>
                            {$comment->getRegdate('Y.m.d')} 
						</dd>
						<dd>
							{$comment->getRegdate('H:i:s')}
						</dd>
                        <!--@if($grant->manager || $module_info->display_ip_address!='N')-->
						<dd>
                            ({$comment->getIpaddress()})
						</dd>
                        <!--@end-->
					</dl>
	
                    <a name="comment_{$comment->get('comment_srl')}"></a>
                    <div class="itemContent">
					<!--@if(!$comment->isAccessible())-->
						<form action="./" method="get" onsubmit="return procFilter(this, input_password)" class="secretMessage">
						<input type="hidden" name="mid" value="{$mid}" />
						<input type="hidden" name="page" value="{$page}" />
						<input type="hidden" name="document_srl" value="{$comment->get('document_srl')}" />
						<input type="hidden" name="comment_srl" value="{$comment->get('comment_srl')}" />
							<p>&quot;{$lang->msg_is_secret}&quot;</p>
							<dl>
								<dt><label for="cpw">{$lang->password}</label> :</dt>
								<dd><input type="password" id="cpw" name="password" class="iText" /><span class="btn"><input type="submit" value="{$lang->cmd_input}" /></span></dd>
							</dl>
						</form>
					<!--@else-->

                        <!--@if($comment->getProfileImage())-->
                            <img src="{$comment->getProfileImage()}" alt="profile" class="commentProfileImage" />
                        <!--@end-->
						{$comment->getContent(true)}
					<!--@end-->
                    </div>
					
					<!--@if($comment->hasUploadedFIles())-->
					<dl class="attachedFile">
						<dt>{$lang->uploaded_file} :</dt>
						{@ $_uploaded_files = $comment->getUploadedFiles() }
						<!--@foreach($_uploaded_files as $key => $file)-->
						<dd><a href="{getUrl('')}{$file->download_url}">{$file->source_filename} <span class="bubble">[File Size:{FileHandler::filesize($file->file_size)}/Download{number_format($file->download_count)}]</span></a></dd>
						<!--@end-->
					</dl>
					<!--@end-->
		
					<div class="btnArea">
						<!--@if($comment->isGranted() || !$comment->get('member_srl'))-->
						<span class="btn"><a href="{getUrl('act','dispBoardDeleteComment','comment_srl',$comment->comment_srl)}">{$lang->cmd_delete}</a></span>
						<span class="btn"><a href="{getUrl('act','dispBoardModifyComment','comment_srl',$comment->comment_srl)}">{$lang->cmd_modify}...</a></span> 
						<!--@end-->
						<span class="btn"><a cond="$oDocument->allowComment()" href="{getUrl('act','dispBoardReplyComment','comment_srl',$comment->comment_srl)}">{$lang->cmd_reply}</a></span> 
					</div>
		
					<!--@if($comment->get('voted_count')!=0 || $comment->get('blamed_count') != 0)-->
					<div class="voted">
						({$lang->voted_count}:
						<a href="#layer_voted_member" class="voted_member_{$comment->comment_srl} comment votedup">{$comment->get('voted_count')?$comment->get('voted_count'):0}</a> / <a href="#layer_voted_member" class="voted_member_{$comment->comment_srl} comment voteddown">{$comment->get('blamed_count')?$comment->get('blamed_count'):0}</a>)
					</div>
					<!--@end-->
		
				</div>
				<!--@if($comment->get('depth'))-->
			<!--@end-->
			
		</div>
		<!--@end-->

</div>

    <!--@if($oDocument->comment_page_navigation)-->
	{@
		$cpageStr = sprintf('%d_cpage', $oDocument->get('document_srl'));
		$cpage = Context::get($cpageStr);
	}
    <div class="pagination a1">
        <a href="{getUrl($cpageStr,1)}#{$oDocument->get('document_srl')}_comment" class="prevEnd">{$lang->first_page}</a> 
        <!--@while($page_no = $oDocument->comment_page_navigation->getNextPage())-->
            <!--@if($cpage == $page_no)-->
                <strong>{$page_no}</strong> 
            <!--@else-->
                <a href="{getUrl($cpageStr,$page_no)}#{$oDocument->get('document_srl')}_comment">{$page_no}</a>
            <!--@end-->
        <!--@end-->
        <a href="{getUrl($cpageStr,$oDocument->comment_page_navigation->last_page)}#{$oDocument->get('document_srl')}_comment" class="nextEnd">{$lang->last_page}</a>
    </div>
    <!--@end-->

</div>
<!--@end-->
